﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyOrder.ascx.cs" Inherits="CheckOut" %>
<link rel="stylesheet" type="text/css" href="Style/style.css" />
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                <tr>
                    <td style="width: 100%; height: 19px">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                               
                                <td  style="width: 100%; font-size:large" bgcolor="#3b5998" id="textmenu" align="left">
                                    Hóa đơn</td>
                               
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%; height: 19px;" id="bordermenu">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;padding-top:10px;" id="contend">
                            <tr>
                                <td align="center" style="height: 30px;padding-right:10px;" colspan="2">
                                    <asp:GridView ID="gvwCart" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                        BackColor="White" BorderColor="#c9c8c8" BorderStyle="Double" BorderWidth="3px"
                                        CellPadding="4" GridLines="Horizontal" OnPageIndexChanging="gvwCart_PageIndexChanging"
                                        OnRowDataBound="gvwCart_RowDataBound" PageSize="3" Width="680px" OnSelectedIndexChanging="gvwCart_SelectedIndexChanging" DataKeyNames="ProductID">
                                        <RowStyle BackColor="WhiteSmoke" ForeColor="#A62800" />
                                        <Columns>
                                            <asp:BoundField DataField="OrderID" HeaderText="M&#227; h&#243;a đơn" />
                                            <asp:BoundField DataField="ProductName" HeaderText="T&#234;n sản phẩm">
                                                <HeaderStyle Width="150px" />
                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ProductPrice" FooterText="$" HeaderText="Đơn gi&#225;">
                                                <HeaderStyle Width="100px" />
                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="Số lượng">
                                                <ItemTemplate>
                                                    &nbsp;
                                                    <asp:Label ID="lblQuantity" runat="server"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle Width="100px" />
                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Th&#224;nh tiền">
                                                <ItemTemplate>
                                                    &nbsp;<asp:Label ID="Label6" runat="server" Text="$"></asp:Label><asp:Label ID="lblTotal" runat="server"></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle Width="100px" />
                                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:TemplateField>
                                            <asp:CommandField ShowSelectButton="True" SelectText="Chi tiết" />
                                        </Columns>
                                        <FooterStyle BackColor="White" ForeColor="#333333" />
                                        <PagerStyle BackColor="AliceBlue" ForeColor="BlueViolet" HorizontalAlign="Center" />
                                        <EmptyDataTemplate>
                                            <asp:CheckBox ID="ckbDelete" runat="server" />
                                        </EmptyDataTemplate>
                                        <SelectedRowStyle BackColor="#F6CAB8" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#A62800" BorderColor="#c9c8c8" Font-Bold="True" ForeColor="White" />
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr><td align="center" style="height: 30px;padding-right:10px;" colspan="2">
                                <asp:Label ID="lblResult" runat="server" Font-Bold="True" Font-Size="X-Large"></asp:Label></td>
                            </tr>
                            <tr><td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                <asp:Label ID="Label3" runat="server" ForeColor="#A62800" Text="Ngày đặt:" Width="140px"></asp:Label></td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:TextBox ID="txtOrderDate" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Width="200px"></asp:TextBox>
                                    <asp:TextBox ID="txtProductID" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Visible="False" Width="200px"></asp:TextBox></td>
                            </tr>
                            <tr><td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label1" runat="server" Text="Tên người nhận:" ForeColor="#A62800" Width="147px"></asp:Label></td>
                                <td align="left" style="width: 350px; height: 30px;" valign="middle">
                                    <asp:TextBox ID="txtReceiverName" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Width="200px"></asp:TextBox>
                                    <asp:Label ID="Label9" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label>
                                    </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label7" runat="server" Text="Địa chỉ:" ForeColor="#A62800" Width="120px"></asp:Label>
                                </td>
                                <td align="left" style="width: 350px; height: 29px" valign="middle">
                                    <asp:TextBox ID="txtAddress" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Height="67px" TextMode="MultiLine" Width="327px"></asp:TextBox>
                                    <asp:Label ID="Label14" runat="server" BorderColor="Red" Color="Red" Text=" * "></asp:Label></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                <asp:Label ID="Label4" runat="server" ForeColor="#A62800" Text="Phương thức trả tiền:" Width="140px"></asp:Label>
                            </td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:DropDownList ID="ddlPayment" runat="server" BackColor="WhiteSmoke" ForeColor="#A62800" Width="120px">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px; height: 30px;padding-right:10px;">
                                    <asp:Label ID="Label8" runat="server" Text="Phương thức vận chuyển:" ForeColor="#A62800" Width="157px"></asp:Label>
                                </td>
                                <td align="left" style="width: 350px; height: 30px" valign="middle">
                                    <asp:DropDownList ID="ddlDelivery" runat="server" BackColor="WhiteSmoke" ForeColor="#A62800" Width="120px">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td align="right" style="padding-right: 10px; width: 100px; height: 30px">
                                    <asp:Label ID="Label2" runat="server" ForeColor="#A62800" Text="Trang thái đặt hàng:" Width="127px"></asp:Label></td>
                                <td align="left" style="width: 350px; height: 45px" valign="middle">
                                    <asp:TextBox ID="txtOrderStatus" runat="server" BackColor="ControlLight" BorderColor="#A62800"
                                        BorderStyle="Inset" ForeColor="#A62800" Width="200px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td align="right" style="padding-right: 10px; width: 100px; height: 30px">
                                    <asp:ValidationSummary ID="vSummary" runat="server" HeaderText="Errors" ShowMessageBox="True"
                                        ShowSummary="False" />
                                </td>
                                <td align="left" style="width: 350px; height: 45px" valign="middle">
                                    <asp:Button ID="btnUpdate" runat="server" BackColor="#4b6cb1"  Font-Bold="false" ForeColor="White" Width="80px" 
                            BorderStyle="None" Text="Cập nhật" OnClick="btnUpdate_Click" />
                                    <asp:Button ID="btnRemoveOrder" runat="server" BackColor="#4b6cb1"  Font-Bold="false" ForeColor="White" 
                            BorderStyle="None" CausesValidation="False" 
                                        Text="Xóa đơn đặt hàng" Width="139px" OnClick="btnRemoveOrder_Click" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>